<template>
  <div class="accountbusiness">
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <el-form-item label="姓名">
        <el-input v-model="formInline.user" placeholder="请输入姓名"></el-input>
      </el-form-item>
      <el-form-item label="身份证号">
        <el-input
          v-model="formInline.idCard"
          placeholder="请输入身份证号"
        ></el-input>
      </el-form-item>
      <el-form-item>
        <el-button icon="el-icon-search" @click="onSubmit">查询</el-button>
      </el-form-item>
    </el-form>
    <el-form :inline="true" v-show="showData">
      <el-form-item label="账户总额：">
        <el-input disabled placeholder=""></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      msg: "账户核算",
      showData: false,
      formInline: {
        user: "",
        idCard: "",
      },
    };
  },
  methods: {
    onSubmit() {
      console.log("submit!");
      this.showData = true;
    },
  },
};
</script>

<style scoped lang="scss">
.accountbusiness {
  padding: 30px;
}
</style>
